Optimal. Leaf size=101 \[ a x+\frac {\sqrt {3} b \text {ArcTan}\left (\frac {1+2 c^{2/3} x^2}{\sqrt {3}}\right )}{2 \sqrt [3]{c}}+b x \tanh ^{-1}\left (c x^3\right )+\frac {b \log \left (1-c^{2/3} x^2\right )}{2 \sqrt [3]{c}}-\frac {b \log \left (1+c^{2/3} x^2+c^{4/3} x^4\right )}{4 \sqrt [3]{c}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.07, antiderivative size = 101, normalized size of antiderivative = 1.00, number of steps
used = 9, number of rules used = 8, integrand size = 10, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.800, Rules used = {6021, 281, 298,
31, 648, 631, 210, 642} \begin {gather*} a x+\frac {\sqrt {3} b \text {ArcTan}\left (\frac {2 c^{2/3} x^2+1}{\sqrt {3}}\right )}{2 \sqrt [3]{c}}+\frac {b \log \left (1-c^{2/3} x^2\right )}{2 \sqrt [3]{c}}-\frac {b \log \left (c^{4/3} x^4+c^{2/3} x^2+1\right )}{4 \sqrt [3]{c}}+b x \tanh ^{-1}\left (c x^3\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 31
Rule 210
Rule 281
Rule 298
Rule 631
Rule 642
Rule 648
Rule 6021
Rubi steps
\begin {align*} \int \left (a+b \tanh ^{-1}\left (c x^3\right )\right ) \, dx &=a x+b \int \tanh ^{-1}\left (c x^3\right ) \, dx\\ &=a x+b x \tanh ^{-1}\left (c x^3\right )-(3 b c) \int \frac {x^3}{1-c^2 x^6} \, dx\\ &=a x+b x \tanh ^{-1}\left (c x^3\right )-\frac {1}{2} (3 b c) \text {Subst}\left (\int \frac {x}{1-c^2 x^3} \, dx,x,x^2\right )\\ &=a x+b x \tanh ^{-1}\left (c x^3\right )-\frac {1}{2} \left (b \sqrt [3]{c}\right ) \text {Subst}\left (\int \frac {1}{1-c^{2/3} x} \, dx,x,x^2\right )+\frac {1}{2} \left (b \sqrt [3]{c}\right ) \text {Subst}\left (\int \frac {1-c^{2/3} x}{1+c^{2/3} x+c^{4/3} x^2} \, dx,x,x^2\right )\\ &=a x+b x \tanh ^{-1}\left (c x^3\right )+\frac {b \log \left (1-c^{2/3} x^2\right )}{2 \sqrt [3]{c}}-\frac {b \text {Subst}\left (\int \frac {c^{2/3}+2 c^{4/3} x}{1+c^{2/3} x+c^{4/3} x^2} \, dx,x,x^2\right )}{4 \sqrt [3]{c}}+\frac {1}{4} \left (3 b \sqrt [3]{c}\right ) \text {Subst}\left (\int \frac {1}{1+c^{2/3} x+c^{4/3} x^2} \, dx,x,x^2\right )\\ &=a x+b x \tanh ^{-1}\left (c x^3\right )+\frac {b \log \left (1-c^{2/3} x^2\right )}{2 \sqrt [3]{c}}-\frac {b \log \left (1+c^{2/3} x^2+c^{4/3} x^4\right )}{4 \sqrt [3]{c}}-\frac {(3 b) \text {Subst}\left (\int \frac {1}{-3-x^2} \, dx,x,1+2 c^{2/3} x^2\right )}{2 \sqrt [3]{c}}\\ &=a x+\frac {\sqrt {3} b \tan ^{-1}\left (\frac {1+2 c^{2/3} x^2}{\sqrt {3}}\right )}{2 \sqrt [3]{c}}+b x \tanh ^{-1}\left (c x^3\right )+\frac {b \log \left (1-c^{2/3} x^2\right )}{2 \sqrt [3]{c}}-\frac {b \log \left (1+c^{2/3} x^2+c^{4/3} x^4\right )}{4 \sqrt [3]{c}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.03, size = 136, normalized size = 1.35 \begin {gather*} a x+b x \tanh ^{-1}\left (c x^3\right )-\frac {b \left (-2 \sqrt {3} \text {ArcTan}\left (\frac {-1+2 \sqrt [3]{c} x}{\sqrt {3}}\right )+2 \sqrt {3} \text {ArcTan}\left (\frac {1+2 \sqrt [3]{c} x}{\sqrt {3}}\right )-2 \log \left (1-\sqrt [3]{c} x\right )-2 \log \left (1+\sqrt [3]{c} x\right )+\log \left (1-\sqrt [3]{c} x+c^{2/3} x^2\right )+\log \left (1+\sqrt [3]{c} x+c^{2/3} x^2\right )\right )}{4 \sqrt [3]{c}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.03, size = 99, normalized size = 0.98
method | result | size |
default | \(a x +b x \arctanh \left (c \,x^{3}\right )+\frac {b \ln \left (x^{2}-\left (\frac {1}{c^{2}}\right )^{\frac {1}{3}}\right )}{2 c \left (\frac {1}{c^{2}}\right )^{\frac {1}{3}}}-\frac {b \ln \left (x^{4}+\left (\frac {1}{c^{2}}\right )^{\frac {1}{3}} x^{2}+\left (\frac {1}{c^{2}}\right )^{\frac {2}{3}}\right )}{4 c \left (\frac {1}{c^{2}}\right )^{\frac {1}{3}}}+\frac {b \sqrt {3}\, \arctan \left (\frac {\sqrt {3}\, \left (\frac {2 x^{2}}{\left (\frac {1}{c^{2}}\right )^{\frac {1}{3}}}+1\right )}{3}\right )}{2 c \left (\frac {1}{c^{2}}\right )^{\frac {1}{3}}}\) | \(99\) |
risch | \(a x +\frac {b x \ln \left (c \,x^{3}+1\right )}{2}+\frac {b \ln \left (x +\left (\frac {1}{c}\right )^{\frac {1}{3}}\right )}{2 c \left (\frac {1}{c}\right )^{\frac {2}{3}}}-\frac {b \ln \left (x^{2}-\left (\frac {1}{c}\right )^{\frac {1}{3}} x +\left (\frac {1}{c}\right )^{\frac {2}{3}}\right )}{4 c \left (\frac {1}{c}\right )^{\frac {2}{3}}}-\frac {b \sqrt {3}\, \arctan \left (\frac {\sqrt {3}\, \left (-2 x +\left (\frac {1}{c}\right )^{\frac {1}{3}}\right )}{3 \left (\frac {1}{c}\right )^{\frac {1}{3}}}\right )}{2 c \left (\frac {1}{c}\right )^{\frac {2}{3}}}-\frac {b x \ln \left (-c \,x^{3}+1\right )}{2}+\frac {b \ln \left (x -\left (\frac {1}{c}\right )^{\frac {1}{3}}\right )}{2 c \left (\frac {1}{c}\right )^{\frac {2}{3}}}-\frac {b \ln \left (x^{2}+\left (\frac {1}{c}\right )^{\frac {1}{3}} x +\left (\frac {1}{c}\right )^{\frac {2}{3}}\right )}{4 c \left (\frac {1}{c}\right )^{\frac {2}{3}}}-\frac {b \sqrt {3}\, \arctan \left (\frac {\sqrt {3}\, \left (2 x +\left (\frac {1}{c}\right )^{\frac {1}{3}}\right )}{3 \left (\frac {1}{c}\right )^{\frac {1}{3}}}\right )}{2 c \left (\frac {1}{c}\right )^{\frac {2}{3}}}\) | \(195\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.46, size = 90, normalized size = 0.89 \begin {gather*} \frac {1}{4} \, {\left (c {\left (\frac {2 \, \sqrt {3} \arctan \left (\frac {\sqrt {3} {\left (2 \, c^{\frac {4}{3}} x^{2} + c^{\frac {2}{3}}\right )}}{3 \, c^{\frac {2}{3}}}\right )}{c^{\frac {4}{3}}} - \frac {\log \left (c^{\frac {4}{3}} x^{4} + c^{\frac {2}{3}} x^{2} + 1\right )}{c^{\frac {4}{3}}} + \frac {2 \, \log \left (\frac {c^{\frac {2}{3}} x^{2} - 1}{c^{\frac {2}{3}}}\right )}{c^{\frac {4}{3}}}\right )} + 4 \, x \operatorname {artanh}\left (c x^{3}\right )\right )} b + a x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.39, size = 260, normalized size = 2.57 \begin {gather*} \left [\frac {\sqrt {3} b c \sqrt {-\frac {1}{c^{\frac {2}{3}}}} \log \left (\frac {2 \, c^{2} x^{6} - 3 \, c^{\frac {2}{3}} x^{2} + \sqrt {3} {\left (2 \, c^{\frac {5}{3}} x^{4} - c x^{2} - c^{\frac {1}{3}}\right )} \sqrt {-\frac {1}{c^{\frac {2}{3}}}} + 1}{c^{2} x^{6} - 1}\right ) + 2 \, b c x \log \left (-\frac {c x^{3} + 1}{c x^{3} - 1}\right ) + 4 \, a c x - b c^{\frac {2}{3}} \log \left (c^{2} x^{4} + c^{\frac {4}{3}} x^{2} + c^{\frac {2}{3}}\right ) + 2 \, b c^{\frac {2}{3}} \log \left (c x^{2} - c^{\frac {1}{3}}\right )}{4 \, c}, \frac {2 \, b c x \log \left (-\frac {c x^{3} + 1}{c x^{3} - 1}\right ) + 2 \, \sqrt {3} b c^{\frac {2}{3}} \arctan \left (\frac {\sqrt {3} {\left (2 \, c x^{2} + c^{\frac {1}{3}}\right )}}{3 \, c^{\frac {1}{3}}}\right ) + 4 \, a c x - b c^{\frac {2}{3}} \log \left (c^{2} x^{4} + c^{\frac {4}{3}} x^{2} + c^{\frac {2}{3}}\right ) + 2 \, b c^{\frac {2}{3}} \log \left (c x^{2} - c^{\frac {1}{3}}\right )}{4 \, c}\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.41, size = 109, normalized size = 1.08 \begin {gather*} \frac {1}{4} \, {\left (c {\left (\frac {2 \, \sqrt {3} {\left | c \right |}^{\frac {2}{3}} \arctan \left (\frac {1}{3} \, \sqrt {3} {\left (2 \, x^{2} + \frac {1}{{\left | c \right |}^{\frac {2}{3}}}\right )} {\left | c \right |}^{\frac {2}{3}}\right )}{c^{2}} - \frac {{\left | c \right |}^{\frac {2}{3}} \log \left (x^{4} + \frac {x^{2}}{{\left | c \right |}^{\frac {2}{3}}} + \frac {1}{{\left | c \right |}^{\frac {4}{3}}}\right )}{c^{2}} + \frac {2 \, \log \left ({\left | x^{2} - \frac {1}{{\left | c \right |}^{\frac {2}{3}}} \right |}\right )}{{\left | c \right |}^{\frac {4}{3}}}\right )} + 2 \, x \log \left (-\frac {c x^{3} + 1}{c x^{3} - 1}\right )\right )} b + a x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 2.76, size = 107, normalized size = 1.06 \begin {gather*} a\,x+\frac {b\,\ln \left (c^{2/3}\,x^2-1\right )}{2\,c^{1/3}}-\frac {\ln \left (4\,c^{2/3}\,x^2+2-\sqrt {3}\,2{}\mathrm {i}\right )\,\left (b+\sqrt {3}\,b\,1{}\mathrm {i}\right )}{4\,c^{1/3}}-\frac {\ln \left (4\,c^{2/3}\,x^2+2+\sqrt {3}\,2{}\mathrm {i}\right )\,\left (b-\sqrt {3}\,b\,1{}\mathrm {i}\right )}{4\,c^{1/3}}+\frac {b\,x\,\ln \left (c\,x^3+1\right )}{2}-\frac {b\,x\,\ln \left (1-c\,x^3\right )}{2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________